/*
 * SpringDamper.h
 *
 *  Created on: 18/05/2011
 *      Author: jorge
 */

#ifndef SPRINGDAMPER_H_
#define SPRINGDAMPER_H_

#include "../physics/Particle.h"

using namespace physics;


namespace physics {

class SpringDamper {
private:
	Particle *left;
	Particle *right;
	double L;
	double ks;
	double kd;

public:
	SpringDamper();
	SpringDamper(Particle *left, Particle *right);
	SpringDamper(Particle *left, Particle *right, double ks, double kd);
	virtual ~SpringDamper();
	void setRigidity(double ks);
	void setDamping(double kd);
	double getDamping();
	double getRigidity();
	void acomulateForce();
	double getLenght();
};

}

#endif /* SPRINGDAMPER_H_ */
